Home } Calculators } Quadratic Equation



Why didn't I have one of these during high school math? Just enter the coefficients for the 'Ax^2 + Bx + C = 0' equation and JavaScript will output the solutions (if they are not imaginary!). Neat!

Quadratic Equation:
Ax2 + Bx + C = 0
A =
B =
C =
X1 =
X2 =

JavaScript Source Code 2002: Calculator: Quadratic Equation

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!